﻿<phone:PhoneApplicationPage 
    x:Class="DevPhoneToolkitSample.Samples.ZoomAttachedSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:DevPhone="clr-namespace:DevPhone.Controls;assembly=DevPhone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel>
            <Border Background="White" VerticalAlignment="Top" BorderBrush="Gray" BorderThickness="1">
                <Image Name="Logo" Source="/DevPhoneToolkitSample;component/Images/DevPhoneToolkit.png" Stretch="None" VerticalAlignment="Top" HorizontalAlignment="Left" />
            </Border>
        </StackPanel>
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,20,12,10">
            <ScrollViewer>
                <StackPanel>
                    <StackPanel>
                        <TextBlock Text="Zoom Attached Service Sample" FontSize="32"/>
                        <TextBlock Text="Earn Accessibility: Zoom Text in any control." TextWrapping="Wrap" FontSize="18" Margin="0,0,0,10" />
                    </StackPanel>
                    <StackPanel>
                        <TextBlock Text="Basic" FontSize="48" Foreground="{StaticResource PhoneAccentBrush}" />
                        <TextBlock Text="Default zoom is 4 X font size and MaxStep = 35" Margin="12,0,12,0"/>
                        <TextBlock Text="Pinch over textbox to zoom." TextWrapping="Wrap" FontSize="18" Margin="12,20,0,0" />
                        <TextBox Text="Sample text to zoom" DevPhone:Zoom.Step="0" >
                        </TextBox>
                    </StackPanel>
                    <StackPanel>
                        <TextBlock Text="MaxSize and MaxStep" FontSize="46" Foreground="{StaticResource PhoneAccentBrush}" />
                        <TextBlock Text="Pinch over textbox to zoom." TextWrapping="Wrap" FontSize="18" Margin="12,20,0,0" />
                        <TextBlock Text="MaxSize=50, MaxStep=7" Margin="12,0,12,0"/>
                        <TextBox Text="Sample text to zoom" DevPhone:Zoom.Step="0" DevPhone:Zoom.MaxSize="50" DevPhone:Zoom.MaxStep="7" />
                    </StackPanel>
                    <StackPanel>
                        <TextBlock Text="Timeout" FontSize="48" Foreground="{StaticResource PhoneAccentBrush}" />
                        <TextBlock Text="Pinch over listbox to zoom. After 5 seconds reset." TextWrapping="Wrap" FontSize="18" Margin="12,20,0,0" />
                        <ListBox BorderThickness="2" Height="200" BorderBrush="#FFA3A3A3" DevPhone:Zoom.Step="0" Margin="12,0,0,12" DevPhone:Zoom.Timeout="5000">
                            <ListBoxItem Content="Item list 1" Margin="5,0,0,5" />
                            <ListBoxItem Content="Item list 2" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 3" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 4" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 5" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 6" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 7" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 8" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 9" Margin="5,0,0,5"/>
                            <ListBoxItem Content="Item list 10" Margin="5,0,0,5"/>
                        </ListBox>
                        <StackPanel>
                            <TextBlock Text="Isolate zoom" FontSize="48" Foreground="{StaticResource PhoneAccentBrush}" />
                            <TextBox Text="Sample text to isolate zoom" DevPhone:Zoom.Step="0" DevPhone:Zoom.IsolateZoom="True" />
                            <TextBlock Text=" " FontSize="28" />
                    </StackPanel>
                    </StackPanel>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
